.class public Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;
.super Ljava/lang/Object;
.source "MetricConfigParams.java"


# instance fields
.field a:I

.field b:I

.field c:I

.field d:I

.field e:Ljava/lang/String;

.field f:Z


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/16 v1, 0x3e8

    .line 44
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 22
    const v0, 0x69780

    iput v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->a:I

    iput v1, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->b:I

    iput v1, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->c:I

    const/16 v0, 0xa

    iput v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->d:I

    .line 24
    const-string v0, ""

    iput-object v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->e:Ljava/lang/String;

    .line 25
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->f:Z

    .line 45
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    invoke-virtual {p0, v0}, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->setFromJSON(Lorg/json/JSONObject;)V

    .line 46
    return-void
.end method


# virtual methods
.method public getDumpThreshhold()I
    .locals 1

    .prologue
    .line 49
    iget v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->d:I

    return v0
.end method

.method public getMaxInQueue()I
    .locals 1

    .prologue
    .line 33
    iget v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->b:I

    return v0
.end method

.method public getNextRetryInterval()I
    .locals 1

    .prologue
    .line 29
    iget v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->a:I

    return v0
.end method

.method public getSamplingFactor()I
    .locals 1

    .prologue
    .line 37
    iget v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->c:I

    return v0
.end method

.method public getUrl()Ljava/lang/String;
    .locals 1

    .prologue
    .line 41
    iget-object v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->e:Ljava/lang/String;

    return-object v0
.end method

.method public isEnabled()Z
    .locals 1

    .prologue
    .line 53
    iget-boolean v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->f:Z

    return v0
.end method

.method public setFromJSON(Lorg/json/JSONObject;)V
    .locals 4
    .parameter

    .prologue
    const v3, 0x7fffffff

    const/4 v2, 0x1

    .line 57
    if-nez p1, :cond_0

    .line 69
    :goto_0
    return-void

    .line 59
    :cond_0
    const-string v0, "sf"

    iget v1, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->c:I

    invoke-static {p1, v0, v1, v2, v3}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getIntFromJSON(Lorg/json/JSONObject;Ljava/lang/String;III)I

    move-result v0

    iput v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->c:I

    .line 61
    const-string v0, "dt"

    iget v1, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->d:I

    invoke-static {p1, v0, v1, v2, v3}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getIntFromJSON(Lorg/json/JSONObject;Ljava/lang/String;III)I

    move-result v0

    iput v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->d:I

    .line 63
    const-string v0, "max"

    iget v1, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->b:I

    invoke-static {p1, v0, v1, v2, v3}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getIntFromJSON(Lorg/json/JSONObject;Ljava/lang/String;III)I

    move-result v0

    iput v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->b:I

    .line 65
    const-string v0, "nri"

    iget v1, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->a:I

    invoke-static {p1, v0, v1, v2, v3}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getIntFromJSON(Lorg/json/JSONObject;Ljava/lang/String;III)I

    move-result v0

    iput v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->a:I

    .line 67
    const-string v0, "url"

    iget-object v1, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->e:Ljava/lang/String;

    invoke-static {p1, v0, v1}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getStringFromJSON(Lorg/json/JSONObject;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->e:Ljava/lang/String;

    .line 68
    const-string v0, "e"

    iget-boolean v1, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->f:Z

    invoke-static {p1, v0, v1}, Lcom/inmobi/commons/internal/InternalSDKUtil;->getBooleanFromJSON(Lorg/json/JSONObject;Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->f:Z

    goto :goto_0
.end method

.method public toJSON()Lorg/json/JSONObject;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lorg/json/JSONException;
        }
    .end annotation

    .prologue
    .line 72
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    .line 73
    const-string v1, "dt"

    iget v2, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->d:I

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 74
    const-string v1, "max"

    iget v2, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->b:I

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 75
    const-string v1, "nri"

    iget v2, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->a:I

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 76
    const-string v1, "sf"

    iget v2, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->c:I

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;I)Lorg/json/JSONObject;

    .line 77
    const-string v1, "url"

    iget-object v2, p0, Lcom/inmobi/androidsdk/bootstrapper/MetricConfigParams;->e:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 78
    return-object v0
.end method
